﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageAfterLogin.master" AutoEventWireup="true" CodeFile="SendBulkSMS.aspx.cs" Inherits="SendSingleSMS" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script language="JavaScript">

    function textCounter(field, cnt, maxlimit) {
        var cntfield = document.getElementById(cnt)
        if (field.value.length > maxlimit) // if too long...trim it!
            field.value = field.value.substring(0, maxlimit);
        // otherwise, update 'characters left' counter
        else
            cntfield.value = field.value.length;
        //cntfield.value = maxlimit - field.value.length;
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1>Send Bulk SMS to Groups</h1>
    <asp:HiddenField ID="hfLoginID" runat="server" />
<table>
    <tr>
        <td>Masking</td>
        <td>:</td>
        <td>
            <asp:TextBox ID="txtMasking" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td valign="top"></td>
        <td valign="top"></td>
        <td valign="top">
            Max 11 characters
        </td>
    </tr>
    <tr>
        <td valign="top">Group</td>
        <td valign="top">:</td>
        <td valign="top">
            <asp:CheckBoxList ID="chklGroup" runat="server" RepeatDirection="Horizontal" RepeatColumns="3">
            </asp:CheckBoxList>
        </td>
    </tr>
     <tr>
        <td valign="top"></td>
        <td valign="top"></td>
        <td valign="top">
            Use (,) for more than 1 no.
        </td>
    </tr>
    <tr>
        <td valign="top">SMS</td>
        <td valign="top">:</td>
        <td>
            <asp:TextBox ID="txtSMS" onKeyUp="textCounter(this,'q17length' ,500)" runat="server" Height="100px" TextMode="MultiLine" Width="100%" ></asp:TextBox>
        </td>
    </tr>
   
    <tr>
        <td></td>
        <td></td>
        <td>
            
           Total <input style="color:red;font-size:12pt;font-style:italic;" readonly="readonly" type="text" id='q17length' name="q17length" size="3" maxlength="3" value="0" />Characters
            <br />
            When total Characters less than or equal 160 Characters then it will be 1 SMS &
            <br />
            When total Characters more than 160 Characters then for each 150 charecters 1 SMS will be considered.
        </td>
    </tr>
    <tr>
        <td></td>
        <td></td>
        <td>
            <asp:Button ID="btnSend" runat="server" Text="Send" onclick="btnSend_Click" />
        </td>
    </tr>
    <tr>
        <td></td>
        <td></td>
        <td>
            <asp:Label ID="lblReport" runat="server" Text=""></asp:Label>
        </td>
    </tr>
</table>

</asp:Content>

